import request from '@/utils/request'

// 查询学习积分记录，每个月底清零列表
export function listPointsRecord(query) {
  return request({
    url: '/study/pointsRecord/list',
    method: 'get',
    params: query
  })
}

// 查询学习积分记录，每个月底清零详细
export function getPointsRecord(id) {
  return request({
    url: '/study/pointsRecord/' + id,
    method: 'get'
  })
}

// 新增学习积分记录，每个月底清零
export function addPointsRecord(data) {
  return request({
    url: '/study/pointsRecord',
    method: 'post',
    data: data
  })
}

// 修改学习积分记录，每个月底清零
export function updatePointsRecord(data) {
  return request({
    url: '/study/pointsRecord',
    method: 'put',
    data: data
  })
}

// 删除学习积分记录，每个月底清零
export function delPointsRecord(id) {
  return request({
    url: '/study/pointsRecord/' + id,
    method: 'delete'
  })
}
